﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Cashier
{
    /// <summary>
    /// WaitingCards.xaml 的交互逻辑
    /// </summary>
    public partial class WaitingCards : Window
    {
        Button parentBtn;
        public WaitingCards()
        {
            InitializeComponent();
        }
        public WaitingCards(Button btn)
            : this()
        {
            parentBtn = btn;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            parentBtn.Background = (sender as Button).Background;
            parentBtn.Content = (sender as Button).Content;
            this.Close();
        }
    }
}
